/*
 * Solo - A small and beautiful blogging system written in Java.
 * Copyright (c) 2010-present, b3log.org
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */
$color: #a6accd !default;
$aColor: #dee2e6 !default;
$aHover: #e67700 !default;
$white: #fff !default;
$tooltipBg: rgba(255, 255, 255, 0.1) !default;
@import "vditor/src/assets/scss/classic";
@import "../../../scss/reset";
html {
  width: 100%;
  height: 100%;
}


body {
  border: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
  height: 100%;
  width: 100%;
  color: $aColor;

  .solo-kanbanniang { //隐藏看板娘
    display: none;
  }

  svg {
    fill: currentColor;
    display: inline-block;
    stroke-width: 0;
    stroke: currentColor;
  }

  a {
    color: $aColor;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.5s;

    &:hover {
      color: $aHover;
      transition: all 0.5s;
    }
  }


  #universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(1600px at 70% 120%, #212750 10%, #020409 100%);
    z-index: -1;
  }

  #universe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(1600px at 70% 120%, #212750 10%, #020409 100%);
    z-index: -1;
  }

  #sidebar {
    position: fixed;
    left: 0px;
    width: 300px;
    height: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);

    .author-info {
      position: absolute;
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 300px;

      .sidebar {
        margin-top: 75px;

        section {
          text-align: center;
          padding: 0 16px;

          .site-author-image {
            padding: 2px;
            width: 120px;
            height: 120px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.1);
          }

          .feed-link {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 10px;

            a {
              border-radius: 4px;
              margin: 5px 10px 0;
              padding: 6px 16px;
              font-size: 14px;
              background: rgba(255, 255, 255, 0.1);
            }
          }

          .svg-list {
            margin: 15px 0;
            font-size: 16px;

            svg {
              height: 22px;
              width: 22px;
              margin: 0 10px 5px;
            }
          }

          .links-of-author {
            margin-bottom: 15px;
            line-height: 26px;

            .links-of-author-item {
              margin: 0 10px;
            }
          }

        }

      }
    }

    .author-info.hide {
      display: none;
      opacity: 0;
      position: absolute;
      left: 80px;
      top: 48px;
      width: 300px;
    }

    .toggle-sidebar-info {
      width: 100px;
      height: 32px;
      font-size: 14px;
      line-height: 32px;
      text-align: center;
      top: 16px;
      left: 100px;
      position: fixed;
    }

    .sidebar-toc {
      margin-top: 75px;
      position: absolute;
      padding: 0 16px;
      width: 268px;
      height: calc(100% - 75px);

      .sidebar-toc-title {
        font-size: 20px;
        text-align: center;
        color: $white;
      }

      .sidebar-toc-progress {
        margin-top: 24px;
        font-size: 16px;

        .progress-notice {
          margin-right: 8px;
        }

        .progress-num {
          margin-right: 8px;
          font-weight: 600;
          color: $aHover;
        }

        .progress-percentage {
          font-size: 16px;
        }

        .sidebar-toc-progress-bar {
          margin-top: 8px;
          height: 1px;
          width: 0;
          background: $aHover;
        }
      }

      ul {
        padding-left: 15px;
      }

      .article__toc {
        margin: 24px 0 0;
        font-size: 14px;
        height: calc(100% - 123px);
        overflow: auto;


        &::-webkit-scrollbar {
          width: 0 !important;
          -ms-overflow-style: none;
          overflow: -moz-scrollbars-none;
        }

        li {
          display: inline-block;
          white-space: nowrap;
          width: 100%;
          overflow: hidden;
          text-overflow: ellipsis;
          line-height: 28px;
          list-style-type: none;

          &:hover {
            color: $aHover;
            transition: all 0.5s;
          }

          &.current {
            color: $aHover;

            a {
              color: $aHover;
            }

          }
        }
      }

    }
  }

  #menu-outer {
    padding: 0 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: calc(100% - 32px);
    height: 56px;
    line-height: 56px;
    border-bottom: 1px solid rgba(173, 181, 189, 0.4);
  }

  #main-container {
    margin-left: 300px;
    height: 100%;
  }

  #content-outer {
    height: calc(100% - 140px);
    overflow: auto;

    #content-inner {
      margin: 32px auto;
      width: 900px;
    }

    #bottom-inner {
      color: $aColor;
    }
  }

  footer {
    text-align: left;
    padding: 0 16px;
    width: calc(100% - 32px);
    height: 65px;
    line-height: 22px;
    border-top: 1px solid rgba(173, 181, 189, 0.4);
    font-size: 12px;
    color: $aColor;
    display: flex;
    align-items: center;

    #footer {
      margin: 0 auto;
      width: 100%;
      max-width: 1200px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      flex-direction: row;

      div {
        display: block;
      }
    }

    .fn-right {
      text-align: right;
    }
  }

  header {
    width: 100%;
    padding: 25px 16px;
    box-sizing: border-box;
    font-size: 23px;
    border-bottom: 1px solid rgba(173, 181, 189, 0.4);

    .header {
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
      display: flex;
      justify-content: space-between;

      .link {
        font-size: 17px;
      }
    }
  }

  #article-list {
    .recent-post-item {
      position: relative;
      display: flex;
      flex-direction: column;
      margin: 32px 0;
      padding: 16px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 4px;
      transition: all 0.5s;

      .content {
        margin-top: 32px;
        display: block;
        line-height: 28px;
      }

      .article-top {
        position: absolute;
        right: 0;
        top: 0;
        width: 48px;
        height: 48px;
        background: url(../images/top.svg) top right/48px 48px no-repeat;
      }

      .post-title {
        position: relative;
        margin: 0 0 16px 0;
        padding: 8px 0;
        display: block;
        font-size: 24px;
        transition: all 0.5s;

        &:after {
          content: url("../images/ufo.svg");
          position: absolute;
          left: 0;
          bottom: -12px;
          width: 12px;
          height: 12px;
          font-size: 12px;
          font-weight: bolder;
        }

        &:hover {
          color: $aHover;
          transition: all 0.5s;
        }

        &:hover:after {
          animation: rotate3ding 5s infinite;
        }
      }

      .container {
        display: flex;
        flex-direction: row;
        justify-content: left;
        flex-wrap: wrap;
        margin-top: 16px;

        .categories {
          margin-right: 8px;

          a {
            text-decoration: underline;
          }
        }

        .article-icon {
          margin: 0 8px 0 0;
        }

        .post-date, .categories, .tags {
          margin-right: 8px;
          padding: 8px 16px;
        }
      }

      .post-content {
        margin-bottom: 0;
        padding: 0;
        background: transparent;
        border-radius: 0;
      }

      .more {
        margin: 32px 0 16px 0;
        padding: 12px 0;
        display: inline-block;
        width: 80px;
        text-align: center;
        font-size: 14px;
      }
    }
  }

  #pagination {
    padding: 0 16px;
    height: 40px;

    .pagination {
      height: 40px;
      text-align: center;

      .prev {
        margin-left: 0;
      }

      .page-number {
        &.current {
          color: $aHover;
          font-size: 16px;
        }
      }

      .next {
        margin-right: 0;
      }

      .space {
        display: inline-block;
        height: 40px;
        line-height: 30px;
        vertical-align: top;
      }
    }

    .pull-left {
      float: left;
    }

    .pull-right {
      float: right;
    }

    .pull-left, .pull-right {
      padding: 0 16px;
      position: relative;
      display: inline-block;
      height: 40px;
      text-align: center;
      line-height: 40px;
      color: $aColor;
      transition: all 0.5s;
      font-size: 14px;

      a {
        transition: all 0.5s;
        color: $aColor;
        text-decoration: none;
      }

      .line {
        position: absolute;
        transition: all 0.5s;
        background: $aHover;
      }

      .line.line-top {
        width: 0;
        height: 1px;
        left: -110%;
        top: -1px;
      }

      .line.line-bottom {
        width: 1px;
        height: 0;
        left: -1px;
        bottom: -110%;
      }

      .line.line-right {
        width: 1px;
        height: 0;
        right: -1px;
        top: -110%;
      }

      .line.line-left {
        width: 0;
        height: 1px;
        bottom: -1px;
        right: -110%;
      }

      &:hover {
        transition: all 0.5s;

        .line-top {
          width: 100%;
          left: 0;
        }

        .line-right {
          height: 100%;
          top: 0;
        }

        .line-bottom {
          height: 100%;
          bottom: 0;
        }

        .line-left {
          width: 100%;
          right: 0;
        }

        a {
          transition: all 0.5s;
          color: $aHover;
        }
      }
    }


    .prev, .page-number, .next {
      margin: 0 4px;
      position: relative;
      display: inline-block;
      width: 40px;
      height: 40px;
      text-align: center;
      line-height: 40px;
      text-decoration: none;
      overflow: hidden;
      border-radius: 4px;
      color: $aColor;
      transition: all 0.5s;
      font-size: 14px;

      &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.1);
        filter: blur(5px);
        margin: -20px;
        z-index: -1;
      }

      &:before {
        content: '';
        position: absolute;
        left: -50px;
        top: -20px;
        width: 30px;
        height: 80px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
        transform: rotateZ(-30deg);
      }

      &:hover {
        color: $aHover;
        transition: all 0.5s;
      }

      &:hover:before {
        left: 40px;
        top: -20px;
        transform: rotateZ(0deg);
        transition: all 0.5s;
      }
    }
  }

  #return-top {
    opacity: 0;
    position: fixed;
    bottom: 72px;
    right: 32px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 16px;
    color: $aColor;
    cursor: pointer;
    z-index: 9;
  }

  #page {
    ul {
      padding: 0;
    }

    .tag-cloud,
    .category-lists {
      padding-top: 32px;
      text-align: center;

      .tag-cloud-title {
        display: inline-block;
        font-size: 30px;
      }

      .tag-cloud-line {
        margin: 0 16px;
        font-size: 30px;
      }

      .tag-cloud-amount {
        font-size: 30px;
      }
    }

    .tag-cloud {

      .tag-cloud-tags {
        margin: 32px 0 0 0;

        a {
          display: inline-block;
          margin: 16px 16px;
          font-size: 12px;
          color: #a4d8fa
        }

        li {
          list-style: none;
          display: inline-block;
        }

        .tags1 {
          font-size: 12px;
          color: #a4d8fa
        }

        .tags2 {
          font-size: 16px;
          color: #85caf7
        }

        .tags3 {
          font-size: 21px;
          color: #55b4f1
        }

        .tags4 {
          font-size: 24px;
          color: #269eec
        }

        .tags5 {
          font-size: 30px;
          color: #0790e8
        }
      }
    }


    .category-lists {
      .category-list {
        margin-top: 40px;
        padding: 0 0 8px;
        list-style: none;
        counter-reset: li;
        text-align: left;

        .category-list-item {
          position: relative;
          margin: 20px 0;
          padding: 10px 50px 10px 32px;
          font-size: 14px;
          transition: all 0.5s;

          &:hover {
            color: $aHover;

            a {
              color: $aHover;
            }
          }

          &:hover::before {
            border: 4px solid $aHover;
            transition: all 0.5s;
          }

          &::before {
            content: "";
            display: block;
            position: absolute;
            top: 8px;
            left: 0;
            width: 8px;
            height: 8px;
            border: 4px solid #49b1f5;
            background: transparent;
            border-radius: 50%;
            line-height: 30px;
            transition: all 0.5s;
          }

          .category-list-link {
            color: $aColor;
            text-decoration: none;
            cursor: pointer;
            transition: all 0.5s;
          }
        }
      }

    }
  }

  .article-sort-item {
    margin: 16px 0;
    position: relative;
    padding: 0 40px;
    height: 32px;
    line-height: 32px;
    font-size: 16px;
    color: $white;

    &::before {
      content: '';
      display: block;
      position: absolute;
      left: 6px;
      top: 9px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      border: 4px solid #49b1f5;
      transition: all 0.5s;
    }

    &::after {
      content: '';
      display: block;
      position: absolute;
      left: 12px;
      top: 22px;
      width: 2px;
      height: 36px;
      background: $aColor;
    }

    &:last-child::after {
      display: none;
    }

    &:hover::before {
      border-color: $aHover;
      transition: all 0.5s;
    }

    &.title {
      height: 56px;
      line-height: 56px;
      font-size: 24px;
      color: $white;

      &::before {
        top: 15px;
        left: 0;
        width: 10px;
        height: 10px;
        border-width: 8px;
      }

      &::after {
        top: 40px;
        left: 12px;
        height: 42px;
      }
    }

    &.year {
      margin: 16px 0;
      height: 40px;
      line-height: 40px;
      font-size: 20px;
      font-weight: 600;
      color: $white;

      &::before {
        top: 10px;
        left: 3px;
        width: 8px;
        height: 8px;
        border-width: 6px;
      }

      &::after {
        top: 30px;
        left: 12px;
        height: 36px;
      }
    }

    .article-time {
      margin-right: 24px;
      color: #99a9bf;
    }

    .article-link {
      transition: all 0.5s;

      &:hover {
        color: $aHover;
        transition: all 0.5s;
      }
    }
  }

  #post {
    margin-bottom: 16px;
    padding: 16px 16px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;

    .post-header {
      margin-bottom: 10px;
      .title {
        position: relative;
        margin: 0 0 16px 0;
        padding: 8px 0;
        display: block;
        font-size: 24px;
        transition: all 0.5s;

        &:after {
          content: url("../images/ufo.svg");
          position: absolute;
          left: 0;
          bottom: -12px;
          width: 12px;
          height: 12px;
          font-size: 12px;
          font-weight: bolder;
        }

        &:hover {
          color: $aHover;
          transition: all 0.5s;
        }

        &:hover:after {
          animation: rotate3ding 5s infinite;
        }
      }

      .container {
        display: flex;
        flex-direction: row;
        justify-content: left;
        flex-wrap: wrap;
        margin-top: 16px;

        .categories {
          margin-right: 8px;

          a {
            text-decoration: underline;
          }
        }

        .article-icon {
          margin: 0 8px 0 0;
        }

        .post-date, .categories, .tags {
          margin-right: 8px;
          padding: 8px 16px;
        }
      }
    }

    .main-content {
      line-height: 28px;

      img {
        max-width: 100%;
      }

      blockquote {
        margin: 0;
        position: relative;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        transition: all 0.5s;

        p {
          margin: 0;
        }
      }

      h1, h2, h3, h4, h5, h6 {
        position: relative;
        cursor: pointer;
        transition: all 0.5s;
        padding-left: 16px;
        color: #fff3cd;

        &:before {
          position: absolute;
          top: 50%;
          left: 0;
          transform: translateY(-50%);
          color: #49b1f5;
          content: "\f0c1";
          font: normal normal normal 12px/1 FontAwesome;
          font-size: 12px;
          transition: all 0.5s;
        }

        &:hover {
          padding-left: 24px;

        }

        &:hover:before {
          color: $aHover;
        }
      }

      ul, ol {
        margin-top: 8px;
        padding: 0 0 0 16px;
        list-style: none;
        counter-reset: li;

        p {
          margin: 0;
        }

        li {
          position: relative;
          margin: 4px 0;
          padding: 2px 10px 2px 30px;
        }
      }

      ul {
        li {

          &:hover:before {
            transform: rotate(360deg);
            border-color: $aHover;
          }

          &:before {
            top: 11px;
            margin-left: 4px;
            width: 6px;
            height: 6px;
            border: 1.8px solid #49b1f5;
            background: transparent;
            content: "";
            line-height: 6px;
            transform: rotateZ(45deg);
            position: absolute;
            left: 0;
            cursor: pointer;
            transition: all 0.5s;
          }
        }

        .task-list-item {
          padding: 0;

          &:before {
            top: 0;
            margin-left: 0;
            width: 0;
            height: 0;
            border: none;
            background: transparent;
            content: "";
            line-height: 0;
            transform: none;
            position: relative;
            left: 0;
            cursor: pointer;
            transition: all 0.5s;
          }
        }
      }

      ol {
        li {
          &:hover:before {
            transform: rotate(360deg);
            color: $aHover;
          }

          &:before {
            position: absolute;
            top: 0;
            left: 0;
            background: rgba(255, 255, 255, 0.1);
            color: #49b1f5;
            cursor: pointer;
            transition: all 0.5s;
            margin-top: 4px;
            width: 24px;
            height: 24px;
            border-radius: 12px;
            content: counter(li);
            counter-increment: li;
            text-align: center;
            font-size: 12px;
            font-weight: 600;
            line-height: 24px;
          }
        }
      }

      a {
        color: #49b1f5;

        &:hover {
          color: $aHover;
          transition: all 0.5s;
        }
      }

      pre {
        position: relative;
        border-radius: 4px;
        overflow: auto;
        margin: 12px 0;
        padding: 0;
        color: $color;
        font-size: 14px;
        line-height: 20px;

        .vditor-copy {
          background: rgba(85, 102, 179, 0.58);
          height: 25px;
          line-height: 25px;
          display: flex;
          justify-content: space-between;
          padding: 0 10px;

          textarea {
            position: absolute;
            left: -999999px;
          }

          span {
            background-color: transparent !important;
          }

          span:last-child {
            cursor: pointer;

            &:hover {
              color: $aHover;
              transition: all 0.5s;
            }
          }
        }
        code{
          border-radius: 0px;
        }

      }

      code {
        background-color: rgba(65, 77, 127, 0.7);
        color: $color;
        font-size: 14px;
      }

      table {
        width: 100%;
        border: 1px solid #dedede;
        margin: 15px auto;
        border-collapse: collapse;
        empty-cells: show;

        thead {
          text-align: center;
        }

        th {
          font-weight: 700;
          text-align: center !important;
          background: rgba(158, 188, 226, .2);
        }

        td, th {
          height: 35px;
          border: 1px solid #dedede;
          padding: 0 10px;
        }

        tbody tr {
          &:nth-child(2n) {
            background: rgba(158, 188, 226, .12);

            &:hover {
              background: rgba(158, 188, 226, .12);
            }
          }

          &:hover {
            background: rgba(255, 255, 255, 0.1)
          }
        }

      }

    }

    /**
     * 去除默认样式
     */
    .vditor-reset {
      h1, h2 {
        border: none;
      }

      blockquote {
        border: none;
        color: $aColor;
      }

      .vditor-copy {
        span {
          cursor: pointer;
          position: relative;
          right: 0;
          top: 0;
          padding: 0;
          height: auto;
          width: auto;
        }
      }

      thead tr {
        background: rgba(158, 188, 226, .12);

        &:hover {
          background: rgba(158, 188, 226, .12);
        }
      }
    }
  }
}


@-moz-keyframes rotate3ding {
  0% {
    left: 0;
    bottom: -12px;
    transform: scale(1);
  }
  20% {
    transform: scale(4);
  }
  50% {
    left: 100%;
    bottom: 40px;
    transform: scale(1);
  }
  70% {
    transform: scale(0.3);
  }
  100% {
    left: 0;
    bottom: -12px;
    transform: scale(1);
  }
}

@-webkit-keyframes rotate3ding {
  0% {
    left: 0;
    bottom: -12px;
    transform: scale(1);
  }
  20% {
    transform: scale(4);
  }
  50% {
    left: 100%;
    bottom: 40px;
    transform: scale(1);
  }
  70% {
    transform: scale(0.3);
  }
  100% {
    left: 0;
    bottom: -12px;
    transform: scale(1);
  }
}

@-o-keyframes rotate3ding {
  0% {
    left: 0;
    bottom: -12px;
    transform: scale(1);
  }
  20% {
    transform: scale(4);
  }
  50% {
    left: 100%;
    bottom: 40px;
    transform: scale(1);
  }
  70% {
    transform: scale(0.3);
  }
  100% {
    left: 0;
    bottom: -12px;
    transform: scale(1);
  }
}

@keyframes rotate3ding {
  0% {
    left: 0;
    bottom: -12px;
    transform: scale(1);
  }
  20% {
    transform: scale(4);
  }
  50% {
    left: 100%;
    bottom: 40px;
    transform: scale(1);
  }
  70% {
    transform: scale(0.3);
  }
  100% {
    left: 0;
    bottom: -12px;
    transform: scale(1);
  }
}

.hoverLeft {
  position: relative;
  margin-right: 16px;
  transition: all 0.5s;

  &:hover {
    transition: all 0.5s;
  }

  &:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: $aHover;
    transition: all 0.5s;
  }

  &:hover:after {
    width: 100%;
    transition: all 0.5s;
  }
}

.hoverMiddle {
  margin-left: 16px;
  position: relative;
  transition: all 0.5s;

  &:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: $aHover;
    transition: all 0.5s;
  }

  &:hover {
    color: $aHover;
    transition: all 0.5s;
  }

  &:hover:after {
    left: 0;
    width: 100%;
    transition: all 0.5s;
  }
}

.button-hover {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;

  &:hover {
    color: $aColor;
  }

  &::before {
    content: '';
    position: absolute;
    left: -50px;
    top: -20px;
    width: 30px;
    height: 80px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    transform: rotateZ(-30deg);
  }

  &:hover::before {
    left: 100%;
    top: -20px;
    transform: rotateZ(0deg);
    transition: all 0.5s;
  }
}


/**
 * tool tip.
 *
 * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
 * @version 0.1.0.0, Jan 25, 2019
 */
@keyframes tooltip-appear {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/**
 * tool tip.
 *
 * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
 * @version 0.1.0.0, Jan 25, 2019
 */
@keyframes tooltip-appear {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.vditor-tooltipped {
  position: relative;
  cursor: pointer;

  &::after {
    position: absolute;
    z-index: 1000000;
    display: none;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: normal;
    -webkit-font-smoothing: subpixel-antialiased;
    color: $aHover;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: break-word;
    white-space: pre;
    pointer-events: none;
    content: attr(aria-label);
    background: $tooltipBg;
    border-radius: 3px;
    line-height: 16px;
    opacity: 0
  }

  &::before {
    position: absolute;
    z-index: 1000001;
    display: none;
    width: 0;
    height: 0;
    color: $tooltipBg;
    pointer-events: none;
    content: "";
    border: 5px solid transparent;
    opacity: 0
  }

  &--hover::before,
  &--hover::after,
  &:hover::before,
  &:hover::after,
  &:active::before,
  &:active::after,
  &:focus::before,
  &:focus::after {
    display: inline-block;
    text-decoration: none;
    animation-name: tooltip-appear;
    animation-duration: 0.1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
    animation-delay: 0.4s
  }

  &__s::after,
  &__se::after,
  &__sw::after {
    top: 100%;
    right: 50%;
    margin-top: 5px
  }

  &__s::before,
  &__se::before,
  &__sw::before {
    top: auto;
    right: 50%;
    bottom: -5px;
    margin-right: -5px;
    border-bottom-color: $tooltipBg
  }

  &__se::after {
    right: auto;
    left: 50%;
    margin-left: -15px
  }

  &__sw::after {
    margin-right: -15px
  }

  &__n::after,
  &__ne::after,
  &__nw::after {
    right: 50%;
    bottom: 100%;
    margin-bottom: 5px
  }

  &__n::before,
  &__ne::before,
  &__nw::before {
    top: -5px;
    right: 50%;
    bottom: auto;
    margin-right: -5px;
    border-top-color: $tooltipBg
  }

  &__ne::after {
    right: auto;
    left: 50%;
    margin-left: -15px
  }

  &__nw::after {
    margin-right: -15px
  }

  &__s::after,
  &__n::after {
    transform: translateX(50%)
  }

  &__w::after {
    right: 100%;
    bottom: 50%;
    margin-right: 5px;
    transform: translateY(50%);
  }

  &__w::before {
    top: 50%;
    bottom: 50%;
    left: -5px;
    margin-top: -5px;
    border-left-color: $tooltipBg;
  }

  &__e::after {
    bottom: 50%;
    left: 100%;
    margin-left: 5px;
    transform: translateY(50%)
  }

  &__e::before {
    top: 50%;
    right: -5px;
    bottom: 50%;
    margin-top: -5px;
    border-right-color: $tooltipBg
  }
}

.vditor, #soloEditorCancel {
  color: #000;
}

#comment {
  position: relative;
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 0;
  resize: none;
  cursor: pointer;
  width: 90%;
  top: 20px;
  left: 5%;
  box-sizing: border-box;

  &:focus {
    outline: none;
  }
}

#comments {
  background: rgba(255, 255, 255, 0.1);
  padding: 0;
  list-style: none;
  margin-top: 50px;
  position: relative;

  li {
    padding: 10px;
    white-space: normal;
    word-wrap: break-word;
    position: relative;
    border-bottom: #EBF2F6 1px solid;
    border-radius: 3px;

    img {
      max-width: 100%;
    }

    .avatar-48 {
      position: absolute;
      box-shadow: 0 0 2px #ddd;
      height: 48px;
      width: 48px;
      margin: 8px 10px 0 0;
      border-radius: 24px;
    }

    .comment-body {
      margin: 8px 0 0 60px;
      min-height: 50px;

      .fn-clear {
        &::after {
          clear: both;
          line-height: 0;
        }

        &::before, &::after {
          display: table;
          content: "";
          line-height: 0;
        }
      }

      .comment-meta {
        font-family: "Open Sans", "Microsoft Yahei", Helvetica;
        color: $color;
        font-size: 13px;
        margin-bottom: 10px;

        .fn-left {
          float: left;
        }

        .fn-right {
          float: right;
        }

        a {
          text-decoration: none;
          border-bottom-width: 0;
        }

        time {
          border-left: 1px solid #d5dbde;
          margin-left: 8px;
          padding-left: 12px;
        }
      }

      .comment-content {
        font-family: "Helvetica Neue", "Luxi Sans", "DejaVu Sans", Tahoma, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
        word-wrap: break-word;
        overflow: auto;
        line-height: 1.65;
        font-size: 16px;
        word-wrap: break-word;
        text-align: justify;
      }
    }
  }

  .item {
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    list-style: none;
    padding: 20px;
  }

  .item__avatar {
    float: left;
    height: 40px;
    width: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin: 0 20px 20px 0;
    background-size: cover;
    background-position: center center;
  }

  .item__name {
    color: rgba(115, 138, 148, 0.8);
    float: left;
    line-height: 40px;
  }
}

.links-of-author-item a {
  border-bottom: 1px solid $aColor;

  &:hover {
    border-bottom: 1px solid $aHover;
  }
}







